package com.dudu.model;

import java.util.Date;

import lombok.Data;

/**
 * Created by dudu on 2016/12/4.
 */
@Data
public class Role {
    private Long id;
    private String name;
    private String tag;
    private String desc;// 角色描述
    private int pValue;// 权限值
    private Date createTime;
    private Date updateTime;

    public enum RoleTag{
        MASTER("role_master", "总管理员"),
        ADMIN("role_admin", "管理员");

        private String tag;
        private String desc;
        RoleTag(String tag, String desc) {
            this.tag = tag;
            this.desc = desc;
        }

        public String getTag() {
            return tag;
        }

        public String getDesc() {
            return desc;
        }
    }
}
